package com.zhai.domain.award.model.entity;

import com.zhai.domain.award.event.SendAwardMessageEvent;
import com.zhai.domain.award.model.valobj.AwardStateVO;
import com.zhai.domain.award.model.valobj.TaskStateVO;
import com.zhai.types.event.BaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description: 消息实体
 * @ClassName: UserAwardRecordEntity
 * @Author: zhaiyongxin
 * @Date: 2025/3/3 17:15
 * @Version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskEntity {
    /** 用户id*/
    private String userId;
    /** 消息id*/
    private String messageId;
    /** 消息主题*/
    private String topic;
    /** 消息主体*/
    private BaseEvent.EventMessage<SendAwardMessageEvent.SendAwardMessage> message;
    /** 任务状态；create-创建、completed-完成、fail-失败*/
    private TaskStateVO state;

}
